﻿using System.Collections.Generic;
namespace LoveMusic
{
    public class StoryListItem : StoryItem
    {
        public List<SongSmallBin> Songs
        {
            get;
            set;
        }

        public int CommentCount
        {
            get;
            set;
        }

        public string StrippedDescription
        {
            get
            {
                if (Description.Length < 255)
                {
                    return Description;
                }

                return string.Concat(Description.Substring(0, 252), "...");
            }
        }

        public string StrippedYouTubeDescription
        {
            get
            {
                if (YouTubeDescription != null)
                {
                    if (YouTubeDescription.Length < 255)
                    {
                        return YouTubeDescription;
                    }

                    return string.Concat(YouTubeDescription.Substring(0, 252), "...");
                }
                else
                    return string.Empty;
            }
        }

        public Mp3FileItem[] Mp3Files { get; set; }
    }
}